
/**
 * @author kjj
 *
 */
public class TestExeTime {
	public static void testedMethod(){
		for (int i = 0; i < 10000000; i++) {
			//do nothing
		}
	}
	
	public void testTime() {
		long begin = System.currentTimeMillis(); //millisecond
		testedMethod();
		long end = System.currentTimeMillis();
		
		System.out.println("[execution time: ] " + (end - begin) + "ms");
	}
	
	public static void main(String args[]) {
		TestExeTime testExeTime = new TestExeTime();
		 testExeTime.testTime();
	}

}
